<%@include file="taglibs/taglibs.jsp"%>
<html>
<head>
	<%@include file="pieces/header.jsp"%>
	<meta name="description" content="Hello File">
</head>
<body>
<li><a href="/index">home</a></li>
<div class="container">
	<h1 class="alert-info">clients</h1>
  <jsp:include page="pieces/mainMenue.jsp" />
  <form:form action="#" modelAttribute="accountForm" acceptCharset="utf-8" >
   <table border="2">
     <tr>
       <td>id</td>
       <td>name</td>
       <td> startDate</td>
       <td> endDate</td>
       <td>client</td>
       <td>bank</td>
     </tr>
      <tr>
        <td><form:input path="id" /> <form:errors path="name" /></a></td>
        <td><form:input path="name" /><form:errors path="name" /></td>
        <fmt:formatDate value="${accountForm.startDate}" var="dateString1" pattern="dd/MM/yyyy hh:mm:ss" />
        <td><form:input path="startDate"  value="${dateString1}" /><form:errors path="startDate" /></td>
        <fmt:formatDate value="${accountForm.endDate}" var="dateString2" pattern="dd/MM/yyyy hh:mm:ss" />
        <td><form:input path="endDate" value="${dateString2}" /><form:errors path="endDate" /></td>
        <td><form:select  path="client.id" items="${mapOfClients}" itemLabel="name" /></td>
        <td><form:select  path="bank.id" items="${mapOfBanks}" itemLabel="name" /></td>
      </tr>
   </table>
      <div class="alert-warning"><form:errors/></div>
    <input type="submit" value="save"/>
  </form:form>


</div>
</body>
</html>
